package com.atguigu.mybatisgenerator.controller;

import com.atguigu.mybatisgenerator.util.ResponseResult;
import io.swagger.annotations.Api;
import org.apache.commons.lang.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = {"缓存操作接口API"})
@RestController
@RequestMapping(value = "/cache")
public class RedisApiController {

    public ResponseResult commonDelete(String token, @RequestParam("key")String key){
        if(StringUtils.isBlank(key)){
            return ResponseResult.paramsErrorResult();
        }

        return ResponseResult.successResult();

    }

}
